{% set namespace = "SYS.DCS" %}
{% set dff_api_title = "HuaweiCloud-DCS Collection" %}
{% set dff_api_crontab = "* * * * *" %}
{% set dff_api_timeout = "300" %}


{% extends "base_template" %}
{% block import %}
{{ super() }}
import integration_huaweicloud_dcs__main as obj_main
import integration_huaweicloud_dcs_slowlog__main as slowlog_main
import integration_huaweicloud_ces__main as monitor_main
{% endblock %}

{% block account %}
{{ super() }}
{% endblock %}

{% block collect_configs %}
{{ super() }}
{% endblock %}

{% block filters%}
{% endblock %}

{% block run %}
@DFF.API('{{ dff_api_title }}', timeout={{dff_api_timeout}}, fixed_crontab='{{ dff_api_crontab }}')
def run():
    collectors = [
        obj_main.DataCollector(account, collector_configs),
        slowlog_main.DataCollector(account),
        monitor_main.DataCollector(account, monitor_configs)
    ]
    Runner(collectors).run()
{% endblock %}
